package gspushmq.model;

public class User {

	/**
	 * 机构id
	 */
	private Integer orgId;
	/**
	 * 权限id
	 */
	private Integer proType;
	
	/**
	 * 客户端标识
	 */
	private String uuid;
	
	/**
	 * 账号id
	 */
	private String accountId;
	
	/**
	 * 账号
	 */
	private String accountName;
	
	/**
	 * 终端的版本
	 */
	private String permi;
	
	/**
	 * 产品线
	 */
	private String productLine;
	
	public String getProductLine() {
		return productLine;
	}
	public void setProductLine(String productLine) {
		this.productLine = productLine;
	}
	public String getPermi() {
		return permi;
	}
	public void setPermi(String permi) {
		this.permi = permi;
	}
	public String getAccountName() {
		return accountName;
	}
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	public String getAccountId() {
		return accountId;
	}
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public Integer getOrgId() {
		return orgId;
	}
	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}
	public Integer getProType() {
		return proType;
	}
	public void setProType(Integer proType) {
		this.proType = proType;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result + ((productLine == null) ? 0 : productLine.hashCode());
		return result;
	}
	
	public String getMessageFlag() {
		return "accountId=" + accountId + ", productLine=" + productLine;
	}
	
	@Override
	public boolean equals(Object obj) {
		
		if(obj == this){
			return true;
		}else if(obj == null){
			return false;
		}else if(!(obj instanceof User)){
			return false;
		}
		User mo = (User)obj;
		return getMessageFlag().equals(mo.getMessageFlag());
	}
	@Override
	public String toString() {
		return "User [orgId=" + orgId + ", proType=" + proType + ", uuid=" + uuid + ", accountId=" + accountId
				+ ", accountName=" + accountName + ", permi=" + permi + ", productLine=" + productLine + "]";
	}
}
